<extend name="Public/common"/>
<block name="style">
  <link type="text/css" rel="stylesheet" href="__PLUGINS__/date/hDate.css">
  <link type="text/css" rel="stylesheet" href="__PLUGINS__/tag/css/jquery.tagsinput.css">
  <link type="text/css" rel="stylesheet" href="__PLUGINS__/umeditor1_2_2-utf8-php/themes/default/css/umeditor.css">
</block>
<block name="body">
  <div class="pure-u-11-13">
    <div class="index-content-top">
      <ul class="index-content-title">
       
      </ul>
    </div>
    <form action="{:U('Admin/User/editmodel')}" method="post">
      <ul class="admin-form">        
        <li>
          <label>姓名：</label>
          <input type="text" name="username" value="{$nickname}" />
        
        </li>
        <li>
          <label>三围：</label>
          <input type="text" name="bust" value="" />
        </li>
         <li>
          <label>民族：</label>
          <input type="text" name="password" value="" />
        </li>
         <li>
          <label>身高：</label>
          <input type="text" name="height" value="" />
        </li>
         <li>
          <label>体重：</label>
          <input type="text" name="weight" value="{$weight}" />
        </li>
         <li>
          <label>星座：</label>
          <input type="text" name="sign" value="" />
        </li>
         <li>
          <label>出生年月：</label>
            <input id="birthday" onClick="calendar.show({ id: this })" type="text" name="birthday"/>
        </li>      
       
        <li>
          <label for="simple-tags">语言能力：</label><div class="tags-simple">
          <input type="text" name="tag_lang" id="tags_2" value="" class="tags">
            <p>热情</p>
            <p>耐心</p>
             
            </div>
        </li>
         
        <li class="myeditor"><script type="text/plain" id="exprience" name="exprience" type="text/plain"></script></li>
       
        <li>
          <input type="submit" id="" value="提交表单" class="admin-button"/>
        </li>
        <input type="hidden" name="uid" value="{$detail.uid}">
      </ul>
    </form>
  

  
  </div>
</block>
<block name="script">

  <script type="text/javascript" charset="utf-8" src="__PLUGINS__/tag/js/jquery.tagsinput.js"></script> 
  <script type="text/javascript" charset="utf-8" src="__PLUGINS__/tag/js/jquery-ui.min.js"></script> 

   <script type="text/javascript" charset="utf-8" src="__PLUGINS__/date/js/hDate.js"></script>
  <script type="text/javascript">
  $("#Text1").click(function (e) {
    var ths = this;
    calendar.show();
  });
 
  $(function() {
   $('#tags_1').tagsInput({width:'auto'});
   $('#tags_2').tagsInput({
    width: 'auto',
    onChange: function(elem, elem_tags)
        {
        var languages = ['php','ruby','javascript'];
            $('.tag', elem_tags).each(function(){
              if($(this).text().search(new RegExp('\\b(' + languages.join('|') + ')\\b')) >= 0)
              $(this).css('background-color', 'yellow');
            });
          }
        });
  var tags = $(".tags-simple p")
  $(".tags-simple p").click(function(){
    $('#tags_2_tag').focus();
    for (var i=0;i<tags.length;i++) {
    var od =$(this).text()
      $('#tags_2_tag').val(od)
    }
    
  })
    });

</script>
<script type="text/javascript">
   $(function(){
        var ue = UE.getEditor('exprience',{
            serverUrl :'{:U('Admin/Admin/ueditor')}'
        });
    })
</script>
</block>